package com.example.testdbsearchform;

import java.util.Date;

public class Product {

	private long id;
	private String name;
	private Date date;
	private Category category;
	
	public Product() {
		super();
	}
	
	public Product(long id, String name, Date date, Category category) {
		super();
		this.id = id;
		this.name = name;
		this.date = date;
		this.category = category;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}
	
	@Override
	  public String toString() {
	    return name;
	  }
	
}
